package com.tanhua.server.service;

import com.tanhua.dubbo.api.UserLocationApi;
import com.tanhua.server.interceptor.UserHolder;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

/**
 * @auther : 白月尘
 * @date : 10:15  2021/10/24
 */
@Service
public class BaiduService {

    @DubboReference
    private UserLocationApi userLocationApi;


    public void location(double latitude, double longitude, String addrStr) {
        userLocationApi.save(latitude,longitude,addrStr, UserHolder.getUserId());
    }
}
